<template>
	<view class="xbd-title">
		<view class="title">
			<slot name="title">
				{{ title }}
			</slot>
		</view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: 'XbdTitle',
		props: {
			title: {
				type: String,
				default: '今日人员通行状况'
			}
		}
	}
</script>

<style lang="scss" scoped>
	.xbd-title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		
		// width: 650rpx;
		.title {
			display: flex;
			align-items: center;
			font-size: 32rpx;
			
			color: $uni-text-color;
			&::before {
				content: '';
				display: inline-block;
				width: 4rpx;
				height: 20rpx;
				margin-right: 24rpx;
				background-color: #457AFF;
			}
		}
	}
</style>
